<template>
    <div>
        <div class="blog-up">
            <p class="blog-up-name">markdown编辑器介绍</p>
        </div>
        <div class="show-content">
            <div class="show-left">
                <h3><span>文章目录</span><i class="el-icon-close"></i></h3>
                <ul>
                    <li class="star"><i class="el-icon-star-off"></i>&nbsp;&nbsp;<a href="#markdown">markdown编辑器</a></li>
                    <li class="liststar"><i class="el-icon-star-on"></i>&nbsp;&nbsp;<a href="#plug">插件介绍</a></li>
                    <li class="star"><i class="el-icon-star-off"></i>&nbsp;&nbsp;<a href="#function">功能介绍</a></li>
                    <li class="liststar"><i class="el-icon-star-on"></i>&nbsp;&nbsp;<a href="#trait">特点</a></li>
                    <li class="liststar"><i class="el-icon-star-on"></i>&nbsp;&nbsp;<a href="#quick">快捷键</a></li>
                    <li class="liststar"><i class="el-icon-star-on"></i>&nbsp;&nbsp;<a href="#code">代码高亮</a></li>
                </ul>

               
            </div>
            <div class="show-right">
                <h1>markdown编辑器介绍</h1>
                <div class="times"><i class="el-icon-time">2020年9月24日</i><i class="el-icon-chat-dot-round" style="margin-left: 30px;">0</i></div>
                <div class="finishs">
                    <h3><a name="markdown">markdown编辑器</a></h3>
                    <p>使用插件为marked.js 和 highlight.js</p>
                </div>
                <div class="processs">
                    <h3><a name="plug">插件介绍</a></h3>
                    <p>1.marked.js 解析markdown语法为html</p>
                    <p>2.highlight.js 将代码高亮显示</p>
                </div>
                <div class="finishs">
                    <h3><a name="function">功能介绍</a></h3>
                </div>
                <div class="process">
                    <h3><a name="trait">特点</a></h3>
                    <p>1.标签处使用vue数据驱动的思想，将所有的标签作为一个数组驱动视图更新</p>
                    <p>2.如果内容修改后没有保存就跳转到其他页面，则会弹出提示框；如果内容没有修改过，则不会提示。</p>
                    <p>3.标签输入处自动去除首尾空格，如果标签重复（包括大小写），则自动弹窗警告并删除</p>
                </div>
                <div class="processs">
                    <h3><a name="quick">快捷键</a></h3>
                    <p>如有快捷键冲突，可自行修改代码</p>
                </div>
                <div class="processs">
                    <h3><a name="code">代码高亮</a></h3>
                    <pre><code class="lang-css"><span class="hljs-selector-class">let user</span> {
    <span class="hljs-attribute">name</span>: <span class="hljs-number">'shuaige'</span>;
    <span class="hljs-attribute">age</span>: <span class="hljs-number">21</span>;
};
                    </code></pre>
                    <pre><code class="lang-css"><span class="hljs-delector-class">1.如果要修改代码高亮样式，可先按F12查看代码的className，然后修改highlight.css</span>
<span class="hljs-delector-class">2.如果要修改解析的html样式，如margin、border-left、border-radius等,可在marked.scss修改</span>
                    </code></pre>
                    <!-- <p></p>
                    <p></p> -->
                </div>
                
                <div>
                    <Email></Email>
                </div>
            </div>
        </div>
        
    </div>
</template>

<script>
import Email from '@/components/email'

export default {
    name:'show',
    components:{
        Email,
    }

}
</script>

<style scoped>
    *{
        margin: 0;
        padding: 0;
    }
    a{
        text-decoration: none;
        color: #fff;
    }

    .blog-up{
        background:url('../assets/sunset.jpg');
        height:570px;
        width:100%;
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .blog-up-name{
        margin: 0;
        color: #fff;
        font-size: 45px;
        font-family: 'Times New Roman';
    }
    .show-content{
        display: flex;
        background-color: black;
        color: #fff;
    }
    .show-left{
        width: 300px;
        text-align: left;
        margin-left: 32px;
        margin: 40px 20px 20px 10px;
    }
    .show-left h3 span{
        margin-right: 20px;
    }
    .show-left ul{
        color: #fff;
        list-style: none;
    }
    .show-left ul li{
        height: 30px;
        width: 190px;
    }
    .show-left h3{
        margin-bottom: 10px;
    }
    .star{
        margin-left:10px;
    }
    .liststar{
        margin-left: 30px;
        margin-top: 5px;
    }
    .show-right{
        width: 800px;
        text-align: left;
    }
    .show-right h1{
        text-align: center;
        margin-top: 70px;
    }
    .times{
        text-align: right;
    }
    .firsts{
        font-size: 25px;
        font-weight: 600;
        border-bottom: 2px solid #fff;
        padding: 20px 0 10px 0;
    }
    .codes{
        margin: 35px 0px 35px 0;
    }
    .codes p{
        margin-top: 10px;
        color: #e3eaf1;
    }
    .processs{

    }
    .processs h3{
        padding: 30px 0 10px 0;
    }
    .finishs{

    }
    .finishs h3{
        border-bottom: 2px solid;
        padding: 50px 0 15px 0;
    }
    .finishs p{
        padding-top: 25px;
    }
    pre{
        padding: 0.625rem 0.625rem;
        background: #474949;
        border-radius: 0.3125rem;
        overflow-x: auto;
        font-size: 18px;
        margin-top: 20px;
    }
    code{
        color: #93f0d8;
    }
    .hljs-comment{
        color: #8e908c;
    }
    .hljs-tag{
        color: darkturquoise;
    }
    .hljs-string{
        color: greenyellow;
    }
    .hljs-attribute {
        color: #eab700;
    }
    .hljs-number{
        color: #f5871f;
    }
    .hljs-keyword{
        color: #cf20ff;
    }
</style>